package com.atguigu.yygh.oss.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * ClassName: OssProperties
 * Package: com.atguigu.yygh.oss.prop
 * Description:
 *
 * @Author: cqk
 * @Create: 2023/9/26 - 9:19
 * @Version: v1.0
 */
@ConfigurationProperties(prefix ="oss.file")
@PropertySource(value = {"classpath:oss.properties"})//不支持yml文件
@Data
@Component
public class OssProperties {
    private String endpoint;
    private String keyid;
    private String keysecret;
    private String bucketname;



}
